package com.lindroid.androiduilearning.textview.fragment;


import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.lindroid.androiduilearning.R;
import com.lindroid.androiduilearning.base.BaseFragment;
import com.lindroid.androiduilearning.util.font.FontChangeUtils;

/**
 * @author Lin
 * @date 2018/3/11
 * @desc 递归遍历ViewTree的方式改变字体，这种方法对性能会有一点影响
 */
public class ViewTreeFragment extends BaseFragment {


    public ViewTreeFragment() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View rootView = inflater.inflate(R.layout.fragment_view_tree, container, false);
        FontChangeUtils.replaceCustomFont(rootView);
        return rootView;
    }

}
